<h1>Editing bet</h1>

<% form_for(@bet) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :person_id %><br />
    <%= select( "bet", "person_id", Person.find_all.collect {|p| [ p.name, p.id ] } ) %>
  </p>
  <p>
    <%= f.label :event %><br />
    <%= f.text_field :event %>
  </p>
  <p>
    <%= f.label :value %><br />
    <%= f.text_field :value %>
  </p>
  <p>
    <%= f.submit 'Update' %>
  </p>
<% end %>

<%= link_to 'Show', @bet %> |
<%= link_to 'Bets', bets_path %> |
<%= link_to 'People', people_path %> |
